Arrays.sort() vs Collections.sort()


Posted by Rich on 2022-08-10

差別是:

  1. Collections 是給 List 用的,Arrays 是給 array 用的。
  2. Collections 用 binary sort, Arrays 用 merge sort

連結










Related Posts

[ Week 1 ] - Command Line

[ Week 1 ] - Command Line

Web開發學習筆記08 — prototype、__proto__、constructor、Prototype Chain(原型鏈)

Web開發學習筆記08 — prototype、__proto__、constructor、Prototype Chain(原型鏈)

CSS單位大全 (px,em,rem,vh,vw,vmin,vmax)

CSS單位大全 (px,em,rem,vh,vw,vmin,vmax)


Comments